<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--360浏览器优先以webkit内核解析-->
    <title>主页示例</title>
    <link rel="shortcut icon" href="assets/manager/favicon.ico"> 
    <link href="assets/manager/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="assets/manager/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="assets/manager/css/animate.css" rel="stylesheet">
    <link href="assets/manager/css/style.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div><h2 class="crumbs">主页</h2></div>
        <div class="row">
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>个人资料</h5>
                    </div>
                    <div>
                        <div class="ibox-content no-padding border-left-right">
                            <img alt="image" id="coverPic" class="img-responsive" src="assets/manager/img/profile_big.jpg">
                        </div>
                        <div class="ibox-content profile-content">
                            <h4>你好，<strong id="name">eBlog</strong></h4>
                            <h5>关于你自己</h5>
                            <p id="aboutMe"></p>
                            <div class="row m-t-lg">
                                <div class="col-sm-4">
                                    <h5><strong id="articles">0</strong> 文章</h5>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 全局js -->
    <script src="assets/manager/js/jquery.min.js?v=2.1.4"></script>
    <script src="assets/manager/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="assets/manager/js/plugins/layer/layer.min.js"></script>
    <!-- Flot -->
    <script src="assets/manager/js/plugins/flot/jquery.flot.js"></script>
    <script src="assets/manager/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="assets/manager/js/plugins/flot/jquery.flot.resize.js"></script>
    <script src="assets/manager/js/plugins/flot/jquery.flot.pie.js"></script>
    <!-- 自定义js -->
    <script src="assets/manager/js/content.js"></script>
    <!--flotdemo-->
    <script type="text/javascript">
    	$(document).ready(function(){
    		$.get("mgindexgetuser",function(data){
    			$("#coverPic").attr("src",data.coverPic);
    			$("#name").html(data.name);
    			if(data.aboutMe == null){
    				$("#aboutMe").html("这个很懒，什么都没留下。");
    			}else{
    				$("#aboutMe").html(data.aboutMe);
    			}
    		});
    		$.get("getArticlesByName",function(data){
    			$("#articles").html(data);
    		});
    	})  
    </script>
</body>
</html>